package haizhi.fruitmall.pojo.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import haizhi.fruitmall.util.TimeUtil;

import java.util.Date;

public class GoodsCategory {
    private Integer categoryId;

    private Integer categoryPid;

    private String categoryName;

    private String picturePath;

    @JsonSerialize(using = TimeUtil.class)
    private Date createTime;

    @JsonSerialize(using = TimeUtil.class)
    private Date updateTime;

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public Integer getCategoryPid() {
        return categoryPid;
    }

    public void setCategoryPid(Integer categoryPid) {
        this.categoryPid = categoryPid;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName == null ? null : categoryName.trim();
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath == null ? null : picturePath.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}